/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package anttasks.mouse;

import java.awt.event.InputEvent;
import org.apache.tools.ant.BuildException;

/**
 *
 * @author Hue
 */
public class MouseClick extends MouseMove {
    
    @Override
    public void execute() throws BuildException {
        super.execute();
        try {
            robot.mousePress(InputEvent.BUTTON1_DOWN_MASK);
            robot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);
        }
        catch(Exception ex) {
            throw new BuildException(ex);
        }
    }
}
